﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Cashier.UC
{
    public partial class ucUserInfo : UserControl
    {
        public ucUserInfo()
        {
            InitializeComponent();
            lbCashierName.Text = GlobalVar.CurrentLogin != null ? GlobalVar.CurrentLogin.EmployeeName : "Cashier Name: Loading...";
            if (GlobalVar.CurrentLogin != null)
            {
                lbCashierName.Text = string.Format("Cashier Name: {0}", GlobalVar.CurrentLogin.EmployeeName);
            }
            else
            {
                lbCashierName.Text = "Cashier Name: Loading...";
            }
        }
    }
}
